using Microsoft.EntityFrameworkCore;

using Tool;

namespace Abc.Core.Entities
{
    /// <summary>
    /// IP黑名单
    /// </summary>
   // [Table("IP黑名单")]
    [Comment("IP黑名单")]
    public class IpBlackList : FullEntity
    {
        ///// <summary>
        ///// IP起始地址
        ///// </summary>
        //[Comment("IP起始地址")]
        //public string StartIp { get; set; }

        ///// <summary>
        ///// IP结束地址
        ///// </summary>
        //[Comment("IP结束地址")]
        //public string EndIp { get; set; }

        /// <summary>
        /// IP地址
        /// </summary>
        [Comment("IP地址")]
        public string IpAddress { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        [Comment("是否启用")]
        public bool IsEnable { get; set; }

        /// <summary>
        /// IP地址类型
        /// </summary>
        [Comment("IP地址类型")]
        public IPAddressType Type { get; set; }
    }

    /// <summary>
    /// IP地址类型
    /// </summary>
    public enum IPAddressType
    {
        IpV4 = 0,
        IpV6 = 1,
    }
}